<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Serialize a single value into a WDDX packet</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.wddx-packet-start.html">wddx_packet_start</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.wddx-serialize-vars.html">wddx_serialize_vars</a></div>
 <div class="up"><a href="ref.wddx.html">WDDX 函数</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="function.wddx-serialize-value" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">wddx_serialize_value</h1>
  <p class="verinfo">(PHP 4, PHP 5)</p><p class="refpurpose"><span class="refname">wddx_serialize_value</span> &mdash; <span class="dc-title">Serialize a single value into a WDDX packet</span></p>

 </div>
 
 <div class="refsect1 description" id="refsect1-function.wddx-serialize-value-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="type">string</span> <span class="methodname"><strong>wddx_serialize_value</strong></span>
    ( <span class="methodparam"><span class="type"><a href="language.pseudo-types.html#language.types.mixed" class="type mixed">mixed</a></span> <code class="parameter">$var</code></span>
   [, <span class="methodparam"><span class="type">string</span> <code class="parameter">$comment</code></span>
  ] )</div>

  <p class="para rdfs-comment">
   Creates a WDDX packet from a single given value.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.wddx-serialize-value-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
   <dl>

    
     <dt>
<em><code class="parameter">var</code></em></dt>

     <dd>

      <p class="para">
       The value to be serialized
      </p>
     </dd>

    
    
     <dt>
<em><code class="parameter">comment</code></em></dt>

     <dd>

      <p class="para">
       An optional comment string that appears in the packet header.
      </p>
     </dd>

    
   </dl>

  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.wddx-serialize-value-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   Returns the WDDX packet, or <strong><code>FALSE</code></strong> on error.
  </p>
 </div>

</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.wddx-packet-start.html">wddx_packet_start</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.wddx-serialize-vars.html">wddx_serialize_vars</a></div>
 <div class="up"><a href="ref.wddx.html">WDDX 函数</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
